home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
016a
/
4files16.zip
/
4FILES.DEF
< prev
next >
Wrap
Text File
|
1991-03-20
|
8KB
|
147 lines
; ╔══════════════════════════════════════════════════════════════════════╗
; ║ ║
; ║ LOGITECH Mouse Support ║
; ║ ║
; ║ for ║
; ║ ║
; ║ === 4FILES === ║
; ║ ║
; ║ by Larry Edwards 3/17/91 ║
; ║ ║
; ╟──────────────────────────────────────────────────────────────────────╢
; ║ File #1: 4FILES.DEF (this file) contains: 1) FULL DOCUMENTATION. ║
; ║ 2) SOURCE CODE. ║
; ║ ║
; ║ File #2: 4FILES.MNU is File #1 compiled, READY FOR USE. ║
; ║ ║
; ║ REQUIRES: Logitech 3-button mouse. ║
; ║ ║
; ╚══════════════════════════════════════════════════════════════════════╝
; OVERVIEW OF MOUSE SUPPORT FEATURES
; ==================================
; This mouse program was written for a 4FILES user who commented that
;if mouse support were added, 4FILES would be "beyond perfection". That is a
;bit of hyperbole, since other nice features also remain to be added in Version
;2.0, but the flattery prompted me to come up with this external mouse support
;for immediate use.
; 4FILES' powerful navigation & browse keys, <G+> and <G->, are mapped to the
;first two mouse buttons (counting left to right). The third button is <ESC>,
;and it facilitates rapid browsing of multiple files by allowing a quick return
;from your browse utility. This button mapping is very efficient both for a
;quick inspection of a parent or subdirectory, and for browsing files.
; Alternatively, you may want to modify the source code (below) to map the
;drive-change key (<*> or <SCROLL>) to Button-1, with the <G+> and <G->
;functions moved to the other buttons. Use the value 162 in the appropriate
;'type' directive below for the drive-change funtion.
; With <ESC> mapped to Button-3, I strongly advise using the /X command
;line switch, which prevents <ESC> from terminating 4FILES. <^ESC> will then
;allow you to quit (to the original directory). Without /X set, you will often
;quit 4FILES unintentionally when returning from the browser. If /X is set,
;hitting <ESC> or <BUTTON-3> will display a reminder to use <^ESC>. This
;message can of course be easily cleard by pressing <BUTTON-3>.
; I highly recommend giving the mouse layout as provided here a good try,
;(with or without /X) before making changes, since I feel it is very likely
;the most powerful arrangement possible. You may disagree, if you have a better
;idea, your comments are welcome. 4F_LTECH.ZIP is hereby provided as part of
;the 4FILES package, and is free to anyone evaluating 4FILES and to registered
;registered 4FILES users.
;MOUSE FUNCTIONS PROVIDED: ("Buttons-12" means buttons 1 & 2 pressed together.)
;========================
; <Button-1> CD, Browse file, or View archive (as appropriate).
; <Button-2> CD to parent directory.
; <Button-3> 1) Return to 4FILES from a utility (e.g. broswe).
; 2) Cancel cutting, end FLR mode, clear message, etc.
; <Buttons-12> Page-Up. (Nice because motion discrete/predictable)
; <Buttons-23> Page-Down.
; <Buttons-13> Toggle between Attributes & Times for files.
; <Buttons-123> Cut Text.
; <Movement> Moves cursor or highlight bar.
; INSTALLATION INSTRUCTIONS:
; =========================
; 0) The following programs, referenced below, are included in the software
; which came with your mouse: NEWMENU, NEWCLICK, MOUSE, and LOGIMENU.
; CLICK.EXE is compiled from CLICK.SRC by NEWCLICK.
; 1) Place 4FILES.DEF (this file) and 4FILES.MNU in your mouse software
; directory. If you modify this source file, re-compile it with
; NEWMENU.EXE.
; 2) CLICK.EXE is used to automatically load an .MNU file when its matching
; program is called. To add 4FILES support to CLICK.EXE, use CLICKADD.COM
; or your text editor to add this line to the file CLICK.SRC:
; 4FILES menu 3buttons
; Then compile CLICK.SRC to CLICK.EXE by running NEWCLICK.EXE. If you
; change the name of 4FILES or call it via a .BAT or .BTM file or an alias,
; add similar lines for those names as well.
; 3) For CLICK to provide its outmatic mouse setup, MOUSE.COM, LOGIMENU.COM
; and CLICK.EXE must be loaded (in that order) after your path and
; environment have been set and before any other programs are run. If
; CLICK has been run and if the above text has been added to CLICK.EXE,
; whenever 4FILES is run the mouse controls coded below will become active.
; Otherwise you will have to load 4FILES manually by typing "LOGIMENU
; 4FILES" (or whatever name you use to load 4FILES) or putting that in a
; .BAT, .BTM, or alias which loads 4FILES.
; 4) If you have an .MNU file for an auxilliary program run from 4FILES, and
; if that program has been listed in CLICK.EXE, when you return from the
; program to 4FILES some or all of the below code will be disabled. Also,
; the mouse button may give unexpected results. Only one .MNU file can be
; active at a time, and the one for the auxiliary program will replace the
; one for 4FILES. This problem can be avoided by being sure the auxiliary
; program is not listed in CLICK.SRC.
; 5) Auxiliary programs which reset the mouse and handle it internally can
; cause a similar problem, since they will wrest control away from
; LOGIMENU. A solution to this is to disable the internal mouse support
; and create a LOGIMENU program which has mouse button assignments
; compatible with the ones you use for 4FILES. This would only be
; necessary if you also use that program as a stand alone program (called
; from the command line) and need mouse support for it in that case.
; 6) You will find that if the mouse is not reset by them, the 4FILES mouse
; functions are operational in your auxiliary programs.
; ╔════════════════════════════════════════════╗
; ║ ║
; ║ S O U R C E C O D E ║
; ║ ║
;════════════════╩════════════════════════════════════════════╩════════════════
BEGIN BUTTON_1, BUTTON_2, BUTTON_3, LEFT, RIGHT, UP, DOWN, 35, 30
; (Buttons are numbered left to right.)
LEFT: type 0, 75 ; Left Arrow
RIGHT: type 0, 77 ; Right Arrow
UP: type 0, 72 ; Up Arrow
DOWN: type 0, 80 ; Down Arrow
BUTTON_1: type 0, 161 ;Mimicks <G-> key, i.e. CD to parent directory
BUTTON_2: type 0, 160 ;Mimicks <G+>.
BUTTON_3: type ESC ;Mimicks <ESC> key.
CHORDS CHORD_12, CHORD_13, CHORD_23, CHORD_123 ;Defines multi-button commands.
CHORD_12: type 0, 73 ;Page up
CHORD_23: type 0, 81 ;Page dn
CHORD_13: type 0, 15 ;Toggle file ATTRIBUTES/TIMES.
CHORD_123: type 0, 67 ;Activate CUT TEXT.